﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ProjectGamer.DataModels;
using ProjectGamer.Web.Models;

namespace ProjectGamer.Web.DbAdapters.IAdapters
{
    public interface IGameAdapter
    {
        Game AddGame(Game game);
        //int getUserCount(int id1, int id2);
        List<Models.GameDetailVM> GetAllGames();
        List<Models.GameDetailVM> GetSearchedGames(string s);
        List<Models.GameDetailVM> GetGame(int id, string userid);
        Game UpdateGame(Game game);
        bool DeleteGame(int id);
        List<Models.GameDetailVM> GetAllGamesForOwner(string userid);
        Game GetGameForRental(int id);
        RentalVM AddRental(int gameid, string userid, string action);
        List<RentalVM> GetAllRentalsForRenter(string username);
        Rental GetRental(int id);
        Rental UpdateRental(Rental rental);
        void DeleteRental(int id);
        string GetUserId(int id);
    }
}
